public void Execute() { String s = side.Getside(); if (side.Equals("Left")) { enemy.moveLeft(); } else if (side.Equals("Right")) { enemy.moveRight(); } else if (side.Equals("Bottom")) { enemy.movedown(); } else if (side.Equals("Top")) { enemy.moveUp(); } }