game functions, need to add scoreboard functionality