Moved java code over to gosu