Added checkCollision method to level module