Movement Fix

Fixing movement code errors with typecasting