finished game backend logic and data output