small changes to SnakeSegment and Window classes