Added checking for occupied spaces. And initial logic to determine winners.