Updated makefile
added null check to UndoMove()