else:
                    playing = False
            if (ToolButtons[1].isOver(pos)):
                addBlocks = True
            if (ToolButtons[2].isOver(pos)):
                ground.clear()
                craft.cordinates.clear()
            if (ToolButtons[3].isOver(pos)):
                craft.Save()

            if (redButton.isOver(pos)):
                run = False
            if (addBlocks == True):
                if (pX > 60 and pX < screenW - 40):
                    if (pY > 40 and pY < screenH - 30):
                        print(grid.CenterIt(pos, grid.Center()))
                        ground.append(
                            Ground(grid.CenterIt(pos, grid.Center()),
                                   'Img/GroundBlock2.png'))
                        craft.Add(grid.CenterIt(pos, grid.Center()))

        if event.type == pygame.MOUSEMOTION:
            if (redButton.isOver(pos)):
                redButton.color = (139, 0, 0)
            else:
                redButton.color = (255, 0, 0)

    keys = pygame.key.get_pressed()
    if (playing == True):
        player.update()
        if keys[pygame.K_LEFT] and player.x > craft.x: