fixed player.cpp and added a basic Makefile to compile the project