Fixed weird-looking tile in map and cleaned up code.