wait implemented, convenient up/down/left/right functions
fixed bug in terrain representation and coords calculations (but still buggy)