CS4102 Assignment 6 - A*