Parametrized block.
Separated screen clearing from game state.