Implemented and tested player class.