added cubic root solving and changed physics