Added states for selecting blocks