added functions for drawing path
added bounds checking to manager
still not quite working. close though