changed if...ekse to switch statement in makeMove()