enhancement #7

Basic gameplay logic.