Added collisionCheck and playerOnScreenCheck