Wall collisions are now working, I removed the calls to the Player.adjust_position method as it seemed to be causing more problems than fixing them.