added player class and hit test