<html>
  <head>
    <title>Jeopardy</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
  </head>
  <body>
    {% if empty < 36 %}
    <table>
      <tr>
        {% for cat in categories: %}
        <th>{{ cat }}</th>
        {% endfor %}
      </tr>
      {% for i in range(1,7) %}
      <tr>
        {% for j in range(0,6): %}
        <td>
          {% if draw_cells[(i-1)*6+j] %}
          <a href="/question?question={{ (i-1) * 6 + j }}&game_state={{ game_state }}">${{i*((1+empty)*7-2)}}<!--${{ i ** 4 + 2*(i ** 3) + 7*(i**2) + i * 33 + ((j+2)%3)**2 + j * 87 - (j+3)**2 - (j+2)**3 + i*((j + 2)%3) + 24 }}--></a>
          {% endif %}
        </td>
        {% endfor %}
      </tr>
      {% endfor %}
    </table>
    {% else %}
    <a class="title" href="/final">
      Final Jeopardy
    </a>
    {% endif %}
  </body>
</html>