Fix incorrectly handling x bounds in enemy movement