fix layout and implement sounds, need to fix algorithm