Fix render not taking window size into account
Clamp clickable tiles
Implement undo (with Ctrl+z)