Added key events for piece movement. Set up factory for random piece generation.