turn world into a class with constructor, make updateCells a method on world, move event key press listener into own function