Moved some things to scala for cleaner code

- minor bug fixes
- basic/unfinished/sloppy tile impl
- TODO: Buildscript for scala compiling