Adding code for games using rails