basic game rules & mouse handling