added check for null in collison, and tests in LevelTest