A Start Algorithm Java