removed code from isLegal, this was preventing moves from occuring