Fixed enemy moving with player

Fixed the bug involving the enemy moving at the same times as the
player.