working first version of playmode