fixed bugs in AStar search
added game component (WIP)