handled half of the gameplay rules