Added a function to determine which tiles can be reached.
Added the escape key as a... well, as an escape key.