made classes and a separate player class