fixGlideTo and refactor BitMask for collision