Initial logic setup

**includes old java files**