refactoring and adding gravity support for game options
make sure selected square is an option
fix indentation