Added gaming logic

Added gaming logic