worked on collision detection for player/crates have to check for y and x separately