changed player to use classes