Modification to RA.java

Creation of the viewOccupancy function.