Add code for detecting legal moves (start coding)