builds game level + fixes side effects