Added helper-function for collision with the player-body. some formatting changes.