game logic updated (with errors, corrections when gui is ready for testing)