D DIRECTIONS R palette r last_token S SPRITES q width p height W width H height r running c color b direction p px q py h history g growth_target s score a last_item_color m chain_item_count n chain_length l max_chain_length cc frame_parity f new_item e endgame p speed M movement_delay ii input_buffer j input_write_index k input_read_index o grid z item_serial_number p dx q dy render w score_status v chain_status i i x row y cell it input_thread v new_direction w key w nx tt last_movement d d d next_cell w next_action t current_time t dirty_pixels d i u need_to_place_item w pass p dx q dy x erase_x y erase_y a max_area g grade i max_items w i