Added a ray cast to check players forward movement