added redraw function, fixed bugs, added to main so it will display the map as a test