Modified for the computer to play !