fixed all player movement bugs with rectangles