add class 'Player'
add some returns in functions