Direction works correctly now, but something's off with rect and speed I think