Added Javadoc.
Improved implementation of isGameOver.
Performance improvement: prevent that isGameOver is invoked for every known input state every frame.
Added a note on potential performance improvements.
Layout.
Added a comment.
Added a TODO
Added functionality for overwriting states when new inputs are received.