adding procedural code for game play