def collides(self,position,size):
        '''Returns True if the word collides with another plotted word.'''
        word_rect = pygame.Rect(position,self.word_size)
        if word_rect.collidelistall(self.used_pos) == []:
            return False
        else:
            return True
def collides ( self , position , size ) : word_rect = pygame . Rect ( position , self . word_size ) if word_rect . collidelistall ( self . used_pos ) == [ ] : return False else : return True
Returns True if the word collides with another plotted word.