Game logic (states and other such goodies)

- States now implemented.