Added logic in to make every possible move