switched width and height from numbers to static variables
added AStar Algorithm
made pather change every time