What is wrong with this bit of code?

I used this script, but it doesn't seem to work when playing. Anyone has any idea why?

Code:
$gameVariables.setValue(28, Math.round(Math.random()*3));
switch ($gameVariables.value(28)){
    case 0:
    $gameVariables.setValue(25, ($gameVariables.value(23) + Math.round(Math.random()*6 + 4));
    $gameVariables.setValue(26, ($gameVariables.value(24) + Math.round(Math.random()*6 + 4));
    break;
    case 1:
    $gameVariables.setValue(25, ($gameVariables.value(23) - Math.round(Math.random()*6 + 4));
    $gameVariables.setValue(26, ($gameVariables.value(24) + Math.round(Math.random()*6 + 4));
    break;
    case 2:
    $gameVariables.setValue(25, ($gameVariables.value(23) + Math.round(Math.random()*6 + 4));
    $gameVariables.setValue(26, ($gameVariables.value(24) - Math.round(Math.random()*6 + 4));
    break;
    case 3:
    $gameVariables.setValue(25, ($gameVariables.value(23) - Math.round(Math.random()*6 + 4));
    $gameVariables.setValue(26, ($gameVariables.value(24) - Math.round(Math.random()*6 + 4));
    break;
    default:
    $gameVariables.setValue(25, ($gameVariables.value(23) + Math.round(Math.random()*6 + 4));
    $gameVariables.setValue(26, ($gameVariables.value(24) + Math.round(Math.random()*6 + 4));
    break;
}
switch ($gameVariables.value(28))
Im ed! I forgot a lot of ) everywhere, thanks for pointing out the ) I wouldn't have noticed hahahaha

Original thread: https://forums.rpgmakerweb.com/threads/what-is-wrong-with-this-bit-of-code.121938/