Pygame Implementation of N-Queens Problem