Switched to logging to console.

Instead of the blocking alert call, that prevents a keyup event to be
triggered correctly.
Added current game type.