added classes for player and sprite