complete game, bug fixes, fix indentation