adds complete functionality to game