fixed bug that stops player from moving