Added method that checks for a winning move