Game Mechanics - Playing with some coding