Getting horizontal collision detection working for player movement