added jenga logic