#NEWLINE# def check_track_space( self , x , y ) : #NEWLINE# #INDENT# '\n        Check if location is an Obstacle\n\n        :param x: int\n        :param y: int\n        :return: int\n        ' #NEWLINE# if ( ( x > ( self . track_width - 1 ) ) or ( x < 0 ) or ( y > ( self . track_height - 1 ) ) or ( y < 0 ) ) : #NEWLINE# #INDENT# return ( - 1 )