add get_character method to the maze class